<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>修改商品页</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

    <script type="text/javascript" src="http://localhost:8080/SST//util/jquery.min.js"></script>
	     	<style type="">
	     img{
	     	width: 200px;
	     }	
	     	
	    #ul{
            float: right;
            margin-right: 22px;
            margin-top: 18px;
            font-size: 15px;
        }
        #ul li{
            list-style-type: none;
            text-align: center;
            float: left;
            width: 14px;
            height: 20px;
            border: 1px solid #eeeeee;
            margin-right: 5px;
        }
        #ul li a{
            text-decoration: none;
        }
	</style>

  </head>
  
  <body>
	    我的商品：	
      	<table id="goods">
      		<tr>	
      			<td >商品名</td>
      			<td>商品描述</td>
      			<td>商品图片</td>
      			<td>商品价格</td>
      			<td>商品分类</td>
      			<td>操作</td>
      		</tr>
      		<c:forEach items="${goodsAllByShop }" var="g">
      			<tr>	
	      			<td >${g.goods_name}</td>
	      			<td>${g.goods_detail}</td>
	      			<td><img  src="/goods/images/${g.goods_dimage}"></td>
	      			<td>${g.goods_price}</td>
	      			<c:forEach items="${getAllSmallClass }" var="s">
	      				<c:if test="${g.is_good==s.id }"><td>${s.case1 }</td></c:if>
	      			</c:forEach>
	      			<td><a href="view/goodsupdateone.do?goods_id=${g.goods_id }">修改</a> <a href="view/goodsdelete.do?goods_id=${g.goods_id }">删除</a></td>			    	 
	      		</tr>      		
      		</c:forEach>
      	</table>
      	[${nowPage }/${sumPage }]
                
         <ul id="ul">
        	<c:forEach begin="1" end="${sumPage }" step="1" var="c">
        		
        	 <li><a href="view/goodsAllByShop.do?index=${c }&category=1"><font <c:if test="${nowPage==c }">color="red"</c:if>>${c }</font></a></li>
        	</c:forEach>
     
        </ul>
        <c:if test="${nowPage>1 }">
    <a href="view/goodsAllByShop.do?index=${nowPage-1 }&category=1">上一页</a>
    </c:if>
		<c:if test="${nowPage<count }">
			<a href="view/goodsAllByShop.do?index=${nowPage+1}&category=1">下一页</a>
		</c:if>
        
  </body>
</html>
